package com.ssm.home;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(value = "com.ssm.*.mapper")
@ComponentScan(value = "com.ssm")
//@RibbonClient(name = "ape-cloud-sku", configuration = SsmRuleConfig.class)
@EnableFeignClients
@EnableHystrix
public class HomeApplication {
    public static void main(String[] args) {
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        SpringApplication.run(HomeApplication.class, args);
    }
}
